package com.library.dao;

import com.library.entity.Books;

import java.util.List;
import java.util.Map;

public interface BooksMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Books record);

    int insertSelective(Books record);

    Books selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Books record);

    int updateByPrimaryKey(Books record);

    List<Books> findBooks(Map<String, Object> params);
    List<Books> findBooksBytype(String type);
    List<Books> allBooks(Map<String, Object> params);
    List<Books> pageSize();
}